//
//  DropListSelectVC.m
//  UILbrary
//
//  Created by Apple on 2023/2/27.
//  Copyright © 2023 mac. All rights reserved.
//

#import "DropListSelectVC.h"
#import "HSFSwitchOnlineHandle.h"
#import "MYHeader.h"

@interface DropListSelectVC ()

@property (nonatomic, strong) HSFSwitchOnlineHandle *switchOnlineHandle;

@end

@implementation DropListSelectVC

//MARK: - system

- (instancetype)init
{
    self = [super init];
    if(self){
        [self p_initConfig];
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self p_loadConfig];
    [self p_configSubviews];
    
    [self.switchOnlineHandle changeOnlineStatu:HSFOnlineStatus_busy];
}

//MARK: - private

- (void)p_initConfig
{
    self.title = @"下拉选择";
}

- (void)p_loadConfig
{
    self.view.backgroundColor = [UIColor yellowColor];
}

- (void)p_configSubviews
{
    [self.view addSubview:self.switchOnlineHandle.view];
    
    [self.switchOnlineHandle.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.view.mas_top).offset(100);
        make.left.mas_equalTo(self.view.mas_left).offset(100);
        make.width.mas_equalTo(100);
        make.height.mas_equalTo(40);
    }];
}

//MARK: - get

- (HSFSwitchOnlineHandle *)switchOnlineHandle
{
    if(!_switchOnlineHandle){
        _switchOnlineHandle = [HSFSwitchOnlineHandle new];
    }
    return _switchOnlineHandle;
}

@end
